package com.learn.core.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * Description
 *
 * @author zhaohongyu
 * @ClassName LItem
 * @date 2021.03.16 13:56
 */
@TableName("l_item")
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value="LItem对象", description="菜单表")
public class LItem implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "menu_id",type = IdType.AUTO)
    private Integer menuId;

    @TableField(value = "menu_name")
    private String menuName;

    @TableField(value = "parent_id")
    private Integer parentId;

    @TableField(value = "fire_url")
    private String fireUrl;

    @TableField(value = "create_time")
    private Date createTime;

    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(value = "state")
    private Integer state;

    @TableField(value = "seq")
    private Integer seq;

    @TableField(exist = false)
    private List<LItem> chilLItem;

    public List<LItem> getChilLItem() {
        return chilLItem;
    }

    public void setChilLItem(List<LItem> chilLItem) {
        this.chilLItem = chilLItem;
    }

    public Integer getMenuId() {
        return menuId;
    }

    public void setMenuId(Integer menuId) {
        this.menuId = menuId;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getFireUrl() {
        return fireUrl;
    }

    public void setFireUrl(String fireUrl) {
        this.fireUrl = fireUrl;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getSeq() {
        return seq;
    }

    public void setSeq(Integer seq) {
        this.seq = seq;
    }
}
